﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DecisionMaking.BusinessLogic.Model.RegisterModel>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">Register</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <%= Html.ValidationSummary("Account creation was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) { %>
        <div>
            <fieldset>
                <legend>Create a New Account</legend>
                <p class="field-multi-line field-textbox">
                    <%= Html.LabelFor(m => m.FirstName) %>
                    <%= Html.TextBoxFor(m => m.FirstName) %>
                    <%= Html.ValidationMessageFor(m => m.FirstName) %>
                </p>
                <p class="field-multi-line field-textbox">
                    <%= Html.LabelFor(m => m.LastName) %>
                    <%= Html.TextBoxFor(m => m.LastName) %>
                    <%= Html.ValidationMessageFor(m => m.LastName) %>
                </p>                
                <p class="field-multi-line field-textbox">
                    <%= Html.LabelFor(m => m.Email) %>
                    <%= Html.TextBoxFor(m => m.Email) %>
                    <%= Html.ValidationMessageFor(m => m.Email) %>
                </p>
                <p class="field-multi-line field-textbox">
                    <%= Html.LabelFor(m => m.Password) %>
                    <%= Html.Password("Password") %>
                    <%= Html.ValidationMessageFor(m => m.Password) %>
                </p>
                <p class="field-multi-line field-textbox">
                    <%= Html.LabelFor(m => m.ConfirmPassword) %>
                    <%= Html.Password("ConfirmPassword") %>
                    <%= Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </p>
                <p>
                    <input type="submit" value="Register" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
